//
//  OosActivityQuery.m
//  Oos4ios
//
//  Created by Pablo Gonzalez on 3/29/11.
//

#import "OosActivityQuery.h"
#import <oos4ios/ApiUrlProvider.h>


@implementation OosActivityQuery

+ (OosActivityQuery *) queryForUserSlug:(NSString *)slug
{
	NSString *url = [[ApiUrlProvider provider].userActivity getUrl:slug, nil];
	OosActivityQuery *query = [[OosActivityQuery alloc] 
							   initWithFeedURL: [NSURL URLWithString: url]];
	return [query autorelease];
}

+ (OosActivityQuery *) queryForSocialUserSlug:(NSString *)slug
{
	NSString *url = [[ApiUrlProvider provider].socialActivity getUrl:slug, nil];
	OosActivityQuery *query = [[OosActivityQuery alloc] 
							   initWithFeedURL: [NSURL URLWithString: url]];
	return [query autorelease];
}

@end
